package com.reebake.ideal.security.service.config;

import com.reebake.ideal.security.service.SecurityMetadataSourceService;
import com.reebake.ideal.security.service.UserSecurityService;
import com.reebake.ideal.security.service.controller.QrcodeAuthController;
import com.reebake.ideal.security.service.controller.UserSecurityController;
import com.reebake.ideal.security.service.impl.SecurityMetadataSourceServiceImpl;
import com.reebake.ideal.security.service.impl.UserSecurityServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import({QrcodeAuthController.class, UserSecurityController.class})
public class SecurityServiceAuthAutoConfiguration {

    @Bean
    UserSecurityService userSecurityService() {
        return new UserSecurityServiceImpl();
    }

    @Bean
    SecurityMetadataSourceService securityMetadataSourceService() {
        return new SecurityMetadataSourceServiceImpl();
    }
}
